package com.ctshk.rpc.cms.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.cms.dto.UserFeedbackDTO;
import com.ctshk.rpc.cms.req.UserFeedbackAddReq;
import com.ctshk.rpc.cms.req.UserFeedbackQueryReq;

/**
 * <p>
 * 用户反馈表 服务类
 * </p>
 *
 * @author LiZhiming
 * @since 2021-04-23
 */
public interface IUserFeedbackService {

    /**
     * 新增用户反馈
     *
     * @param req
     * @return
     */
    Result insert(UserFeedbackAddReq req, TokenUser tu);

    /**
     * 查询用户反馈
     * @param userFeedbackId
     * @return
     */
    Result<UserFeedbackDTO> queryById(String userFeedbackId);

    /**
     * 用户反馈分页查询
     * @param req
     * @return
     */
    PageResponse<UserFeedbackDTO> queryList(UserFeedbackQueryReq req);
}
